body {
    font-family: sans-serif;
    padding: 20px;
}

.controls,
.search-container {
    margin-bottom: 20px;
}

.container {
    display: flex;
    gap: 30px;
}

.calendar-area {
    width: 60%;
}

.schedule-list-area {
    width: 35%;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}


.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
}

#calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #ddd;
}


.calendar-cell {
    min-height: 100px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
    overflow-y: auto;
}

.calendar-cell:hover {
    background-color: #f9f9f9;
}

.calendar-cell.empty {
    background-color: #f5f5f5;
    cursor: default;
}


.schedule-item-calendar {
    font-size: 0.8em;
    background-color: #e0f7fa;
    border-radius: 3px;
    padding: 2px 4px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* [추가] 달력 내 일정이 클릭 가능함으로 표시 */
    cursor: pointer;
}

/* [추가] 목록 내 일정이 클릭 가능함 표시 */
#schedule-list li {
    padding: 4px 2px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#schedule-list li:hover {
    background-color: #f4f4f4;
}

.modal-content input[type="text"],
.modal-content select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
/* [추가] 모달 내 버튼 그룹 */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    width: 100%;
    padding: 10px; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
/* [추가] 삭제 버튼 */
.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}


.modal-hidden {
    display: none;
}


#schedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 30px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
    border-radius: 8px;
}

.modal-content div {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
}

.modal-content input[type="text"],
.modal-content select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.modal-close-btn {
    float: right;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}


/* [추가] 일정 검색 결과 시각적 강조*/
.calendar-cell.highlight {
    background-color: #fffb8f;
    border: 2px solid #fdd835;
}